/*
 * preferences.cpp
 *
 *  Created on: 8/12/2008
 *      Author: smaxll
 */

#include "preferences.hpp"

//#include <cstdlib>
//#include <iostream>
//#include <iterator>
//#include <sstream>

namespace {
bool _fullscreen = false;
std::pair<int, int> screen_resolution(800, 600);
}

namespace preferences {

void set_fullscreen(bool isOn){
    _fullscreen = isOn;
}

bool fullscreen(){
    return _fullscreen;
}

std::pair<int, int> resolution(){
    return screen_resolution;
}

void set_resolution(int x, int y){
    screen_resolution.first = x;
    screen_resolution.second = y;
}

}
